package main

import (
	"fmt"
	"os"
)

// Version 常量如果想跨包访问需要变量名首字母大写！！！
const Version = 123456

// 定义常量

const Num2 string = "魏正想"

// 在函数外定义全局变量时要使用
var num = 10

func main() {
	var s, sep string
	fmt.Println(len(os.Args))
	for i := 1; i < len(os.Args); i++ {
		s += sep + os.Args[i]
		sep = " "
	}
	//fmt.Println(test.Name)
	fmt.Println(Num2)
	fmt.Println(num)
	fmt.Println("aaa")
	fmt.Println(s + "======================")
	var name = 2
	name = 9
	fmt.Println(name)
	name2 := 4
	fmt.Println(name2)
	var (
		s1 = 9
		s2 = 10
	)
	fmt.Println(s1, s2)
	var c1 int32 = 'a'
	var c2 = 97
	fmt.Println(c1)
	fmt.Println(c2)
	var userMap = map[int]string{
		1: "魏正想",
		2: "想想",
	}
	fmt.Printf("%#v\n", userMap[1])
	fmt.Println(test2())
}

func test2() int {
	var m = 4
	return m
}
